package com.xb.service.imp;

import com.xb.mapper.RoleMapper;
import com.xb.mapper.UserMapper;
import com.xb.mapper.UserRoleMapper;
import com.xb.service.IUserRoleService;
import com.xb.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Service业务层处理
 */
@Service
public class UserRoleServiceImp implements IUserRoleService {
    @Resource
    private UserRoleMapper userRoleMapper;
    @Autowired
    RoleMapper roleMapper;
    @Autowired
    UserMapper userMapper;


    @Override
    public Result getUserRole(Integer uid) {
        Result result = new Result();
        result.setData(userRoleMapper.selectUserRoleByUid(uid));
        return result;
    }

}
